package com.aegean.MonitorExamSYS.center.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.aegean.MonitorExamSYS.center.component.SelectConductionInfo;
import com.aegean.MonitorExaxSYS.model.ConductionValue;
import com.opensymphony.xwork2.ActionSupport;

@Controller("SelectConductions")
@Scope("prototype")
public class SelectConductions extends ActionSupport {
	@Resource
	CenterBusiness business;
    private String city_Name;
    private List<ConductionValue> conductions;
    private int total;
	private int start;
	private int limit;
	
	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public String getCity_Name() {
		return city_Name;
	}

	public void setCity_Name(String city_Name) {
		this.city_Name = city_Name;
	}

	public List<ConductionValue> getConductions() {
		return conductions;
	}

	public void setConductions(List<ConductionValue> conductions) {
		this.conductions = conductions;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		conductions=business.showConductions(city_Name,start,limit);
		total=conductions.size();
		return SUCCESS;
	}

}
